#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time     : 2021/3/21 3:46 下午
# @Author   : xiaoyang
# @Email    :296559739@qq.com
# @File     : yangzhen0320.py
#普通双for循环实现99乘法表
for i in range(1,10):
    for j in range(1,i+1):
        print(f'{i}*{j}={i*j}',end=' ')
    print()
#一行代码实现实现99乘法表
print('\n'.join(' '.join(f"{i}*{j}={i*j}" for j in range(1,i+1)) for i in range(1,10)))